<?php
$this->headTitle('Mail list');
$this->placeholder('content_title')->set(intval($this->countMailsRemote) . ' mails found !');
//$this->placeholder('body_onload')->set('document.emailform.email_to.focus();');
?>

<div id="">
    <a href="<?php echo $this->U('email', 'edit'); ?>"><?php echo $this->T('New Mail'); ?></a>
</div>

<h4>remote</h4>

<br />

<div>

    <?php
    if ($this->countMailsRemote > 0 and isset($this->mailsRemote)) {
        foreach ($this->mailsRemote as $num => $message) {
    ?>

    <div>
        <?php echo $num;?>. 
        <a href="<?php echo $this->U('email', 'view', 'admin', array('id' => $num)); ?>">
            <?php echo $message->subject; ?>
        </a>
    </div>

    <?php
        }
    }
    ?>

</div>

